package com.bdqn.Demo;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SysUserTest {

    @Test
    public void testApplication(){
        //多个参数方式
//        ApplicationContext context = new ClassPathXmlApplicationContext(
//                "applicationContext.xml",
//                "applicationContext-dao.xml",
//                "applicationContext-service.xml");
        //数组参数方式
//        String[] config = {"applicationContext.xml",
//                "applicationContext-dao.xml",
//                "applicationContext-service.xml"};
//        ApplicationContext context = new ClassPathXmlApplicationContext(config);
        //通配符参数方式
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationConfig*.xml");
    }
}
